package com.bhs.sansong.bean;

import android.os.Parcel;
import android.os.Parcelable;

import androidx.annotation.NonNull;

public class CompanyInformation implements Parcelable {
    private String company_pic;
    private String address;
    private String logistics_id;
    private String line_id;
    private String company_name;

    private String startCity;
    private String endCity;

    public CompanyInformation(String company_pic, String address, String logistics_id, String line_id, String company_name) {
        this.company_pic = company_pic;
        this.address = address;
        this.logistics_id = logistics_id;
        this.line_id = line_id;
        this.company_name = company_name;
    }

    public String getStartCity() {
        return startCity;
    }

    public void setStartCity(String startCity) {
        this.startCity = startCity;
    }

    public String getEndCity() {
        return endCity;
    }

    public void setEndCity(String endCity) {
        this.endCity = endCity;
    }

    public String getCompany_pic() {
        return company_pic;
    }

    public void setCompany_pic(String company_pic) {
        this.company_pic = company_pic;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLogistics_id() {
        return logistics_id;
    }

    public void setLogistics_id(String logistics_id) {
        this.logistics_id = logistics_id;
    }

    public String getLine_id() {
        return line_id;
    }

    public void setLine_id(String line_id) {
        this.line_id = line_id;
    }

    public String getCompany_name() {
        return company_name;
    }

    public void setCompany_name(String company_name) {
        this.company_name = company_name;
    }

    protected CompanyInformation(Parcel in) {
        company_pic = in.readString();
        address = in.readString();
        logistics_id = in.readString();
        line_id = in.readString();
        company_name = in.readString();
        startCity = in.readString();
        endCity = in.readString();
    }

    public static final Creator<CompanyInformation> CREATOR = new Creator<CompanyInformation>() {
        @Override
        public CompanyInformation createFromParcel(Parcel in) {
            return new CompanyInformation(in);
        }

        @Override
        public CompanyInformation[] newArray(int size) {
            return new CompanyInformation[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(@NonNull Parcel parcel, int i) {
        parcel.writeString(company_pic);
        parcel.writeString(address);
        parcel.writeString(logistics_id);
        parcel.writeString(line_id);
        parcel.writeString(company_name);
        parcel.writeString(startCity);
        parcel.writeString(endCity);
    }
}
